package leecode

import "strings"

func entityParser(text string) string {
	result := strings.Replace(text, "&quot;", "\"", -1)
	result = strings.Replace(result, "&apos;", "'", -1)
	result = strings.Replace(result, "&gt;", ">", -1)
	result = strings.Replace(result, "&lt;", "<", -1)
	result = strings.Replace(result, "&frasl;", "/", -1)
	result = strings.Replace(result, "&amp;", "&", -1)
	return result
}
